<?php
/***
 * 描述：用户设定页面
 * @category		Mobile		
 * @package			Action			
 * @subpackage		
 * @author			wanght <whtaok@gmail.com>
 * @since			2013-4-6
 * @version			$Id: CustAction.class.php 5 2013-10-14 03:20:14Z whtaok@gmail.com $
 */
class CustAction extends MobileAction {
	/**
	 * 客户我的设定页面
	 * @access		public
	 * @author		wanght<whtaok@gmail.com>
	 * @since		2013-3-3
	 */
	public function indexAct() {
		$cust_id = session(SES_CUST_ID);
		$cust = session(SES_CUST);
		$cust['cartItemCnt'] = getcnt_cartitem();
		if($cust_id){
			$cust['addressCnt'] = getcnt_address($cust_id);
		}else{
			$cust['addressCnt'] = 0;
			$cust['name'] = '尚未登录';
		}

		$this->assign('cust',$cust);
		$this->display('index');
	}
	
}

?>